package com.lingnan.eduservice.clientinterface;

import com.lingnan.common.utils.ResultEntity;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * VodClient 熔断器
 * @author wweca
 *
 */
@Component
public class VodClientFallBack implements VodClient{

    @Override
    public ResultEntity deleteVideoByVideoSourceId(String videoSourceId) {

        return ResultEntity.error().message("删除视频超时");

    }

    @Override
    public ResultEntity deleteAllVideo(List<String> videoSourceIdList) {

        return ResultEntity.error().message("批量删除视频超时");
    }
}
